home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d21 / dvglue10.arc / TVQORIG.C < prev    next >
C/C++ Source or Header  |  1988-08-13  |  1KB  |  30 lines

  1. /*=======================================================*/
  2. /*  TVQORIG.C                                            */
  3. /*                                                       */
  4. /*  (c) Copyright 1988 Ralf Brown  All Rights Reserved   */
  5. /*  May be freely copied for noncommercial use, so long  */
  6. /*  as this copyright notice remains intact, and any     */
  7. /*  changes are marked in the comment blocks preceding   */
  8. /*  functions.                                           */
  9. /*=======================================================*/
  10.  
  11. #include "tvapi.h"
  12. #include "tvstream.h"
  13.  
  14. /*=======================================================*/
  15. /* TVqry_origin--get upper left corner of portion of     */
  16. /*               logical window in physical window       */
  17. /*   Ralf Brown 4/3/88                                   */
  18. /*=======================================================*/
  19.  
  20. void pascal TVqry_origin(OBJECT win,int *row, int *col)
  21. {
  22.    static BYTE query_stream[] = { S_QUERY(3), 0xC4, 0, 0 } ;
  23.  
  24.    TVwin_stream(win,query_stream) ;
  25.    *row = query_stream[5] ;
  26.    *col = query_stream[6] ;
  27. }
  28.  
  29. /* End of TVQORIG.C */
  30.